﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.Engine.Control;
using Project.Module.Model;
using Project.Module.Model.CMS;
using Project.Module.DAO.CMSBL;
using Project.Module.DAO.BL;
using Project.Engine.Utilities;

namespace Project.Module.View.CMS
{
    public class CMSQuanLyBaiViet : BasePageRazor
    {
        public string displayAdmin = string.Empty;
        public List<NewsModel> listNews = null;

        private NewsBL newBl = new NewsBL();

        protected override void InitializePage()
        {
            base.InitializePage();
            if (Session["username_ad"] != null && ((string)(Session["username_ad"])).Length > 0)
            {
                displayAdmin = (string)(Session["username_ad"]);
                listNews = newBl.GetList();
            }
        }
    }
}
